package com.zjsd.sqeybusiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zjsd.sqeybusiness.mapper.TcdetailMapper;
import com.zjsd.sqeybusiness.domain.Tcdetail;
import com.zjsd.sqeybusiness.service.ITcdetailService;

/**
 * 套餐明细Service业务层处理
 * 
 * @author Zheng
 * @date 2022-05-10
 */
@Service
public class TcdetailServiceImpl implements ITcdetailService 
{
    @Autowired
    private TcdetailMapper tcdetailMapper;

    /**
     * 查询套餐明细
     * 
     * @param detailid 套餐明细ID
     * @return 套餐明细
     */
    @Override
    public Tcdetail selectTcdetailById(Long detailid)
    {
        return tcdetailMapper.selectTcdetailById(detailid);
    }

    /**
     * 查询套餐明细列表
     * 
     * @param tcdetail 套餐明细
     * @return 套餐明细
     */
    @Override
    public List<Tcdetail> selectTcdetailList(Tcdetail tcdetail)
    {
        return tcdetailMapper.selectTcdetailList(tcdetail);
    }

    /**
     * 新增套餐明细
     * 
     * @param tcdetail 套餐明细
     * @return 结果
     */
    @Override
    public int insertTcdetail(Tcdetail tcdetail)
    {
        return tcdetailMapper.insertTcdetail(tcdetail);
    }

    /**
     * 修改套餐明细
     * 
     * @param tcdetail 套餐明细
     * @return 结果
     */
    @Override
    public int updateTcdetail(Tcdetail tcdetail)
    {
        return tcdetailMapper.updateTcdetail(tcdetail);
    }

    /**
     * 批量删除套餐明细
     * 
     * @param detailids 需要删除的套餐明细ID
     * @return 结果
     */
    @Override
    public int deleteTcdetailByIds(Long[] detailids)
    {
        return tcdetailMapper.deleteTcdetailByIds(detailids);
    }

    /**
     * 删除套餐明细信息
     * 
     * @param detailid 套餐明细ID
     * @return 结果
     */
    @Override
    public int deleteTcdetailById(Long detailid)
    {
        return tcdetailMapper.deleteTcdetailById(detailid);
    }
}
